package cn.mumzone.pos.ui.activity;

import android.content.Context;
import android.content.Intent;
import android.support.v4.app.FragmentTransaction;

import cn.mumzone.basic.base.BaseActivity;
import cn.mumzone.pos.R;
import cn.mumzone.pos.ui.fragment.FRA_Schedule;

/**
 * Created by qiuzhenhuan on 2019/7/18.
 */

public class ACT_Schedule extends BaseActivity {

    FRA_Schedule fraSchedule;

    @Override
    protected void initEventAndData() {
        fraSchedule = new FRA_Schedule();
        fraSchedule.setInActivity(true);
        if (!fraSchedule.isAdded()) {
            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.add(R.id.ll_root, fraSchedule);
            transaction.commitAllowingStateLoss();
        }
    }

    @Override
    protected int getLayout() {
        return R.layout.act_schedule;
    }

    public static void startAc(Context context){
        Intent intent = new Intent(context,ACT_Schedule.class);
        context.startActivity(intent);
    }
}
